<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" isELIgnored="false"%>

<html>
<head>
    <title>辅导员列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>辅导员列表 —— 显示所有辅导员</small>
                </h1>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/index.jsp">首页</a>
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/fdy/toAddfdy">添加辅导员</a>
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/fdy/allfdy">显示全部辅导员</a>
        </div>

    </div>

    <div class="row">


    </div>

    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>辅导员序号</th>
                    <th>辅导员名字</th>
                    <th>辅导员编号</th>
                    <th>辅导员职务</th>
                    <th>辅导员部门</th>
                    <th>辅导员年龄</th>
                    <th>辅导员性别</th>

                </tr>
                </thead>

                <tbody>
                <c:forEach var="Fdy" items="${list}">
                    <tr>
                        <td>${Fdy.fid}</td>
                        <td>${Fdy.fname}</td>
                        <td>${Fdy.fsid}</td>
                        <td>${Fdy.fmajor}</td>
                        <td>${Fdy.fcla}</td>
                        <td>${Fdy.fage}</td>
                        <td>${Fdy.fsex}</td>
                        <td>
                            <a href="${pageContext.request.contextPath}/fdy/toUpdatefdy?fid=${Fdy.getFid()}">更改</a>
                            |
                            <a href="${pageContext.request.contextPath}/fdy/del/${Fdy.getFid()}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>